package config

type TTSConfig struct {
	Model          string `json:"model"`
	Voice          string `json:"voice"`
	Format         string `json:"format,omitempty"`
	SampleRate     int    `json:"sample_rate,omitempty"`
	Volume         int    `json:"volume"`
	SpeechRate     int    `json:"speech_rate"`
	PitchRate      int    `json:"pitch_rate"`
	EnableSubtitle bool   `json:"enable_subtitle"`
	AppKey         string `json:"appKey"`
}

// NewTTSConfig 阿里语音合成配置
func NewTTSConfig() *TTSConfig {
	return &TTSConfig{
		AppKey:         "sk-04c9241377104b06b3a544d2d2f31909",
		Voice:          NewSysConfig().Speaker,
		Format:         "OPUS",
		SampleRate:     16000,
		Volume:         100,
		SpeechRate:     0,
		PitchRate:      0,
		EnableSubtitle: false,
		Model:          "paraformer-realtime-v2",
	}
}
